//
//  ICMDatePickerView.h
//  ICrEAM
//
//  Created by rainimute on 16/11/8.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ICMDatePickerView;
@protocol ICMDatePickerViewDelegate <NSObject>

@optional
- (void)datePickerView:(ICMDatePickerView*)datePickerView didSelectedDate:(NSDate*)selectedDate;
//清空时间
- (void)delTime:(ICMDatePickerView *)datePickerView;
@end

@interface ICMDatePickerView : UIView

@property (nonatomic, weak) id<ICMDatePickerViewDelegate>delegate;

@property (nonatomic, strong) UIDatePicker *datePicker;

//DateModel:0---2016-11-16;1---2016-11-16 22:00
+ (instancetype)createDatePickerViewWithFrame:(CGRect)frame minDate:(NSDate*)minDate maxDate:(NSDate*)maxDate andPredefinedDate:(NSDate*)preDate andDateModel:(NSInteger)dateModel;

@end
